package com.kingyun.gpsinspection.purificationservice.facade.service.som;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.kingyun.gpsinspection.purificationservice.facade.model.Manufacture;
import com.kingyun.gpsinspection.purificationservice.facade.model.OpcPropertyVo;

import java.util.List;

/**
 * Created by yangcs on 2017/12/27.
 */
public interface ManufactureService {

    JSONArray manufacture() throws Exception;

    JSONArray manufactureEdit() throws Exception;

    int saveManufacture(Manufacture manufacture);

    JSONObject homepageItemData(int itemType);

    JSONObject queryByOrgId();

    JSONObject list(String name, Integer limit, Integer offset, String search);

    /**
     * 查询所有的OPC点
     */
    List<OpcPropertyVo> queryOpcConfiguration() throws Exception;

    /**
     * 保存OPC首页配置
     *
     * @param items1
     * @param items2
     */
    Integer saveItems(String items1, String items2) throws Exception;
}
